﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Service;
using Model;

namespace Manager
{
    /// <summary>
    /// Student2022业务逻辑
    /// 创建人：Wilson
    /// 创建时间：2013-1-29  
    /// </summary>
    public class Student2022Manager
    {
        			
        #region##通过主键ID得到Student2022
        /// <summary>
        /// 功能：通过ID得到Student2022
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29   
        /// </summary>
        /// <param name="">主键ID</param>
        /// <returns></returns>
        public Student2022 GetById(string styear)
        {            
            using (Student2022Service ws = new Student2022Service())
			{
				return ws.GetById(styear);
			}
        }
        #endregion
		
		#region##通过主键ID删除Student2022
        /// <summary>
        /// 功能：通过主键ID删除Student2022
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29   
        /// </summary>
        /// <param name="">主键ID</param>
        /// <returns></returns>
		public int DeleteById(string styear)
		{
			using (Student2022Service ws = new Student2022Service())
			{
				return ws.DeleteById(styear);
			}
		}
		#endregion			
		
        #region##添加Student2022
        /// <summary>
        /// 功能：添加Student2022
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
        public int Add(Student2022 student2022)
        {
            using (Student2022Service ws = new Student2022Service())
			{
				return ws.Add(student2022);
			}
        }
        #endregion
		
		#region##得到Student2022集合
		/// <summary>
        /// 功能：得到Student2022集合
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29
        /// </summary>       
        /// <returns></returns>
		public IList<Student2022> GetList()
		{
		    using (Student2022Service ws = new Student2022Service())
			{
				return ws.GetList();
			}
		}
		#endregion
		
		#region##修改Student2022
        /// <summary>
        /// 功能：修改Student2022
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
        public int ModStudent2022(Student2022 student2022)
        {
            using (Student2022Service ws = new Student2022Service())
			{
				return ws.ModStudent2022(student2022);
			}
        }
        #endregion
		
		#region##统计Student2022
		/// <summary>
        /// 修改Student2022
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
		public int SelectCount()
		{
			using (Student2022Service ws = new Student2022Service())
			{
				return ws.SelectCount();
			}
		}
        /// <summary>
        /// 修改Student2022
        /// 创建人：  Wilson 
        /// 创建时间：2013-1-29
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
        public int SelectCountById()
        {
            using (Student2022Service ws = new Student2022Service())
			{
				return ws.SelectCountById();
			}
        }
		#endregion
        #region##自定义Student2022
        #endregion
    }
}